<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        if(session('isLogin') != 1){
            header("Location:".U('Login/index'));
        }
        $system = PHP_OS;
        $operation = $_SERVER['SERVER_SOFTWARE'];
        $function = php_sapi_name();
        $size = ini_get('upload_max_filesize');
        $ip = $_SERVER['HTTP_HOST'];
        $host = $_SERVER['HTTP_ADDR'];
        $time = time();
        $this -> assign("system",$system);
        $this -> assign("operation",$operation);
        $this -> assign("function",$function);
        $this -> assign("size",$size);
        $this -> assign("ip",$ip);
        $this -> assign('time',$time);
        $this->show();
    }
}